package com.ddyx.service.product.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 属性值
 * </p>
 *
 * @author agula
 * @since 2019-08-06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("p_goods_property_value")
public class GoodsPropertyValue extends Model<GoodsPropertyValue> {

    private static final long serialVersionUID=1L;

    /**
     * 属性值ID
     */
    @TableId(value = "property_value_id", type = IdType.AUTO)
    private Integer propertyValueId;

    /**
     * 属性名ID
     */
    private Integer propertyId;

    /**
     * 属性值
     */
    private String propertyValue;

    /**
     * 创建时间
     */
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    private LocalDateTime gmtModified;


    @Override
    protected Serializable pkVal() {
        return this.propertyValueId;
    }

    @Override
    public String toString() {
        return "GoodsPropertyValue{" +
        "propertyValueId=" + propertyValueId +
        ", propertyId=" + propertyId +
        ", propertyValue=" + propertyValue +
        ", gmtCreate=" + gmtCreate +
        ", gmtModified=" + gmtModified +
        "}";
    }
}
